package com.chinasofti.manager.domain.fz;

public class Student {
    String name;
    private int age;
    public void setAge(int a){
        if(a<0||a>120){
            System.out.println("输入年龄有误");
        }else {
            age=a;
        }
    }
    public int getAge(){
        return age;
    }
    public void show(){
        System.out.println(name+"---"+age);
    }

    public void setAge() {
    }
}
